home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume20 / notation / part02 < prev    next >
Encoding:
Text File  |  1991-06-18  |  50.5 KB  |  1,488 lines

  1. Newsgroups: comp.sources.misc
  2. From: Henry Thomas <hthomas@irisa.fr>
  3. Subject:  v20i053:  notation - chess text handler, Part02/04
  4. Message-ID: <1991Jun17.051600.2667@sparky.IMD.Sterling.COM>
  5. X-Md4-Signature: 0f3b45c8dbd7fb04c7c5b5083bc4506a
  6. Date: Mon, 17 Jun 1991 05:16:00 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: Henry Thomas <hthomas@irisa.fr>
  10. Posting-number: Volume 20, Issue 53
  11. Archive-name: notation/part02
  12. Supersedes: notation: Volume 18, Issue 12-14
  13.  
  14. #! /bin/sh
  15. # This is a shell archive.  Remove anything before this line, then unpack
  16. # it by saving it into a file and typing "sh file".  To overwrite existing
  17. # files, type "sh file -c".  You can also feed this as standard input via
  18. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  19. # will see the following message at the end:
  20. #        "End of archive 2 (of 4)."
  21. # Contents:  COPYING notation.doc notation.n shortened.txt
  22. # Wrapped by hthomas@cattus on Sun Jun 16 18:17:27 1991
  23. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  24. if test -f 'COPYING' -a "${1}" != "-c" ; then 
  25.   echo shar: Will not clobber existing file \"'COPYING'\"
  26. else
  27. echo shar: Extracting \"'COPYING'\" \(12488 characters\)
  28. sed "s/^X//" >'COPYING' <<'END_OF_FILE'
  29. X
  30. X            GNU GENERAL PUBLIC LICENSE
  31. X             Version 1, February 1989
  32. X
  33. X Copyright (C) 1989 Free Software Foundation, Inc.
  34. X                    675 Mass Ave, Cambridge, MA 02139, USA
  35. X Everyone is permitted to copy and distribute verbatim copies
  36. X of this license document, but changing it is not allowed.
  37. X
  38. X                Preamble
  39. X
  40. X  The license agreements of most software companies try to keep users
  41. Xat the mercy of those companies.  By contrast, our General Public
  42. XLicense is intended to guarantee your freedom to share and change free
  43. Xsoftware--to make sure the software is free for all its users.  The
  44. XGeneral Public License applies to the Free Software Foundation's
  45. Xsoftware and to any other program whose authors commit to using it.
  46. XYou can use it for your programs, too.
  47. X
  48. X  When we speak of free software, we are referring to freedom, not
  49. Xprice.  Specifically, the General Public License is designed to make
  50. Xsure that you have the freedom to give away or sell copies of free
  51. Xsoftware, that you receive source code or can get it if you want it,
  52. Xthat you can change the software or use pieces of it in new free
  53. Xprograms; and that you know you can do these things.
  54. X
  55. X  To protect your rights, we need to make restrictions that forbid
  56. Xanyone to deny you these rights or to ask you to surrender the rights.
  57. XThese restrictions translate to certain responsibilities for you if you
  58. Xdistribute copies of the software, or if you modify it.
  59. X
  60. X  For example, if you distribute copies of a such a program, whether
  61. Xgratis or for a fee, you must give the recipients all the rights that
  62. Xyou have.  You must make sure that they, too, receive or can get the
  63. Xsource code.  And you must tell them their rights.
  64. X
  65. X  We protect your rights with two steps: (1) copyright the software, and
  66. X(2) offer you this license which gives you legal permission to copy,
  67. Xdistribute and/or modify the software.
  68. X
  69. X  Also, for each author's protection and ours, we want to make certain
  70. Xthat everyone understands that there is no warranty for this free
  71. Xsoftware.  If the software is modified by someone else and passed on, we
  72. Xwant its recipients to know that what they have is not the original, so
  73. Xthat any problems introduced by others will not reflect on the original
  74. Xauthors' reputations.
  75. X
  76. X  The precise terms and conditions for copying, distribution and
  77. Xmodification follow.
  78. X
  79. X            GNU GENERAL PUBLIC LICENSE
  80. X   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  81. X
  82. X  0. This License Agreement applies to any program or other work which
  83. Xcontains a notice placed by the copyright holder saying it may be
  84. Xdistributed under the terms of this General Public License.  The
  85. X"Program", below, refers to any such program or work, and a "work based
  86. Xon the Program" means either the Program or any work containing the
  87. XProgram or a portion of it, either verbatim or with modifications.  Each
  88. Xlicensee is addressed as "you".
  89. X
  90. X  1. You may copy and distribute verbatim copies of the Program's source
  91. Xcode as you receive it, in any medium, provided that you conspicuously and
  92. Xappropriately publish on each copy an appropriate copyright notice and
  93. Xdisclaimer of warranty; keep intact all the notices that refer to this
  94. XGeneral Public License and to the absence of any warranty; and give any
  95. Xother recipients of the Program a copy of this General Public License
  96. Xalong with the Program.  You may charge a fee for the physical act of
  97. Xtransferring a copy.
  98. X
  99. X  2. You may modify your copy or copies of the Program or any portion of
  100. Xit, and copy and distribute such modifications under the terms of Paragraph
  101. X1 above, provided that you also do the following:
  102. X
  103. X    a) cause the modified files to carry prominent notices stating that
  104. X    you changed the files and the date of any change; and
  105. X
  106. X    b) cause the whole of any work that you distribute or publish, that
  107. X    in whole or in part contains the Program or any part thereof, either
  108. X    with or without modifications, to be licensed at no charge to all
  109. X    third parties under the terms of this General Public License (except
  110. X    that you may choose to grant warranty protection to some or all
  111. X    third parties, at your option).
  112. X
  113. X    c) If the modified program normally reads commands interactively when
  114. X    run, you must cause it, when started running for such interactive use
  115. X    in the simplest and most usual way, to print or display an
  116. X    announcement including an appropriate copyright notice and a notice
  117. X    that there is no warranty (or else, saying that you provide a
  118. X    warranty) and that users may redistribute the program under these
  119. X    conditions, and telling the user how to view a copy of this General
  120. X    Public License.
  121. X
  122. X    d) You may charge a fee for the physical act of transferring a
  123. X    copy, and you may at your option offer warranty protection in
  124. X    exchange for a fee.
  125. X
  126. XMere aggregation of another independent work with the Program (or its
  127. Xderivative) on a volume of a storage or distribution medium does not bring
  128. Xthe other work under the scope of these terms.
  129. X
  130. X  3. You may copy and distribute the Program (or a portion or derivative of
  131. Xit, under Paragraph 2) in object code or executable form under the terms of
  132. XParagraphs 1 and 2 above provided that you also do one of the following:
  133. X
  134. X    a) accompany it with the complete corresponding machine-readable
  135. X    source code, which must be distributed under the terms of
  136. X    Paragraphs 1 and 2 above; or,
  137. X
  138. X    b) accompany it with a written offer, valid for at least three
  139. X    years, to give any third party free (except for a nominal charge
  140. X    for the cost of distribution) a complete machine-readable copy of the
  141. X    corresponding source code, to be distributed under the terms of
  142. X    Paragraphs 1 and 2 above; or,
  143. X
  144. X    c) accompany it with the information you received as to where the
  145. X    corresponding source code may be obtained.  (This alternative is
  146. X    allowed only for noncommercial distribution and only if you
  147. X    received the program in object code or executable form alone.)
  148. X
  149. XSource code for a work means the preferred form of the work for making
  150. Xmodifications to it.  For an executable file, complete source code means
  151. Xall the source code for all modules it contains; but, as a special
  152. Xexception, it need not include source code for modules which are standard
  153. Xlibraries that accompany the operating system on which the executable
  154. Xfile runs, or for standard header files or definitions files that
  155. Xaccompany that operating system.
  156. X
  157. X  4. You may not copy, modify, sublicense, distribute or transfer the
  158. XProgram except as expressly provided under this General Public License.
  159. XAny attempt otherwise to copy, modify, sublicense, distribute or transfer
  160. Xthe Program is void, and will automatically terminate your rights to use
  161. Xthe Program under this License.  However, parties who have received
  162. Xcopies, or rights to use copies, from you under this General Public
  163. XLicense will not have their licenses terminated so long as such parties
  164. Xremain in full compliance.
  165. X
  166. X  5. By copying, distributing or modifying the Program (or any work based
  167. Xon the Program) you indicate your acceptance of this license to do so,
  168. Xand all its terms and conditions.
  169. X
  170. X  6. Each time you redistribute the Program (or any work based on the
  171. XProgram), the recipient automatically receives a license from the original
  172. Xlicensor to copy, distribute or modify the Program subject to these
  173. Xterms and conditions.  You may not impose any further restrictions on the
  174. Xrecipients' exercise of the rights granted herein.
  175. X
  176. X  7. The Free Software Foundation may publish revised and/or new versions
  177. Xof the General Public License from time to time.  Such new versions will
  178. Xbe similar in spirit to the present version, but may differ in detail to
  179. Xaddress new problems or concerns.
  180. X
  181. XEach version is given a distinguishing version number.  If the Program
  182. Xspecifies a version number of the license which applies to it and "any
  183. Xlater version", you have the option of following the terms and conditions
  184. Xeither of that version or of any later version published by the Free
  185. XSoftware Foundation.  If the Program does not specify a version number of
  186. Xthe license, you may choose any version ever published by the Free Software
  187. XFoundation.
  188. X
  189. X  8. If you wish to incorporate parts of the Program into other free
  190. Xprograms whose distribution conditions are different, write to the author
  191. Xto ask for permission.  For software which is copyrighted by the Free
  192. XSoftware Foundation, write to the Free Software Foundation; we sometimes
  193. Xmake exceptions for this.  Our decision will be guided by the two goals
  194. Xof preserving the free status of all derivatives of our free software and
  195. Xof promoting the sharing and reuse of software generally.
  196. X
  197. X                NO WARRANTY
  198. X
  199. X  9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  200. XFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
  201. XOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  202. XPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  203. XOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  204. XMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
  205. XTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  206. XPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  207. XREPAIR OR CORRECTION.
  208. X
  209. X  10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  210. XWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  211. XREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  212. XINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  213. XOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  214. XTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  215. XYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  216. XPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  217. XPOSSIBILITY OF SUCH DAMAGES.
  218. X
  219. X             END OF TERMS AND CONDITIONS
  220. X
  221. X    Appendix: How to Apply These Terms to Your New Programs
  222. X
  223. X  If you develop a new program, and you want it to be of the greatest
  224. Xpossible use to humanity, the best way to achieve this is to make it
  225. Xfree software which everyone can redistribute and change under these
  226. Xterms.
  227. X
  228. X  To do so, attach the following notices to the program.  It is safest to
  229. Xattach them to the start of each source file to most effectively convey
  230. Xthe exclusion of warranty; and each file should have at least the
  231. X"copyright" line and a pointer to where the full notice is found.
  232. X
  233. X    <one line to give the program's name and a brief idea of what it does.>
  234. X    Copyright (C) 19yy  <name of author>
  235. X
  236. X    This program is free software; you can redistribute it and/or modify
  237. X    it under the terms of the GNU General Public License as published by
  238. X    the Free Software Foundation; either version 1, or (at your option)
  239. X    any later version.
  240. X
  241. X    This program is distributed in the hope that it will be useful,
  242. X    but WITHOUT ANY WARRANTY; without even the implied warranty of
  243. X    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  244. X    GNU General Public License for more details.
  245. X
  246. X    You should have received a copy of the GNU General Public License
  247. X    along with this program; if not, write to the Free Software
  248. X    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  249. X
  250. XAlso add information on how to contact you by electronic and paper mail.
  251. X
  252. XIf the program is interactive, make it output a short notice like this
  253. Xwhen it starts in an interactive mode:
  254. X
  255. X    Gnomovision version 69, Copyright (C) 19xx name of author
  256. X    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  257. X    This is free software, and you are welcome to redistribute it
  258. X    under certain conditions; type `show c' for details.
  259. X
  260. XThe hypothetical commands `show w' and `show c' should show the
  261. Xappropriate parts of the General Public License.  Of course, the
  262. Xcommands you use may be called something other than `show w' and `show
  263. Xc'; they could even be mouse-clicks or menu items--whatever suits your
  264. Xprogram.
  265. X
  266. XYou should also get your employer (if you work as a programmer) or your
  267. Xschool, if any, to sign a "copyright disclaimer" for the program, if
  268. Xnecessary.  Here a sample; alter the names:
  269. X
  270. X  Yoyodyne, Inc., hereby disclaims all copyright interest in the
  271. X  program `Gnomovision' (a program to direct compilers to make passes
  272. X  at assemblers) written by James Hacker.
  273. X
  274. X  <signature of Ty Coon>, 1 April 1989
  275. X  Ty Coon, President of Vice
  276. X
  277. XThat's all there is to it!
  278. END_OF_FILE
  279. if test 12488 -ne `wc -c <'COPYING'`; then
  280.     echo shar: \"'COPYING'\" unpacked with wrong size!
  281. fi
  282. # end of 'COPYING'
  283. fi
  284. if test -f 'notation.doc' -a "${1}" != "-c" ; then 
  285.   echo shar: Will not clobber existing file \"'notation.doc'\"
  286. else
  287. echo shar: Extracting \"'notation.doc'\" \(15121 characters\)
  288. sed "s/^X//" >'notation.doc' <<'END_OF_FILE'
  289. X
  290. X
  291. X
  292. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  293. X
  294. X
  295. X
  296. XNAME
  297. X     notation - transform chess notation
  298. X
  299. X
  300. XSYNOPSYS
  301. X     notation [input file] [-o output file] [-options...]
  302. X
  303. X
  304. XDESCRIPTION
  305. X     This program reads chess games,  either  full  algebraic  or
  306. X     shortened (ie Nf1-g3 or Ng3) and is able to ouptut the board
  307. X     after any move, in either ascii , postscript, nroff,  latex,
  308. X     xboard  or  gnuan  save  format. This program is also multi-
  309. X     lingual:  it  handles  english,  french,  spanish,   german,
  310. X     italian, dutch, romanian etc... symbols. So nearly all euro-
  311. X     peans languages are understood (except  greek  and  russian,
  312. X     but  I  can't  handle  greek or cyrillic on ascii computers,
  313. X     eh).
  314. X
  315. X
  316. XOPTIONS
  317. X     Command line options:
  318. X
  319. X
  320. X     -a
  321. X             algebraic move notation output
  322. X
  323. X
  324. X     -s
  325. X             shortened move notation output
  326. X
  327. X
  328. X     -f <language>
  329. X             specifies  the  chess  symbol  input  language.  The
  330. X             language  can  be  any  of french, english, italian,
  331. X             spanish, german, dutch,  czech,  hungarian,  polish,
  332. X             romanian, FIDE.
  333. X
  334. X
  335. X     -t <language>
  336. X             specifies the chess  symbol  output  language.  Same
  337. X             options as input language.
  338. X
  339. X
  340. X     <inputfile>
  341. X             specifies the  input  file.  If  none,  keyboard  is
  342. X             assumed.
  343. X
  344. X
  345. X     -o <outputfile>
  346. X             specifies  the  output  file.  If  none,  screen  is
  347. X             assumed.
  348. X
  349. X
  350. X
  351. XSun Release 4.1   Last change: 10 December 1990                 1
  352. X
  353. X
  354. X
  355. X
  356. X
  357. X
  358. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  359. X
  360. X
  361. X
  362. X     -c <number>[,<number]
  363. X             specifies the number  of  the  moves  at  which   to
  364. X             display  the  board.  If none, board is displayed at
  365. X             end of file. Several numbers may be specified, as  a
  366. X             comma-separated list.
  367. X
  368. X
  369. X     -e <number>
  370. X             display the board at the move number and then stops
  371. X
  372. X
  373. X     -b
  374. X             display only the board, not the moves
  375. X
  376. X
  377. X     -d <drivername>
  378. X             specifies the output driver. It can be  any  of  the
  379. X             following:  ascii,  postscript,  tex,  roff,  xchess
  380. X             (xchess or xboard save  format),  gnu  (gnuan  input
  381. X             format).
  382. X
  383. X
  384. X     -i
  385. X             suppress headers/footers printing.  This  is  useful
  386. X             with  tex  or ps drivers, if you want to include the
  387. X             output in a larger file.
  388. X
  389. X
  390. X     -v
  391. X             displays version number and exits
  392. X
  393. X
  394. X     -h
  395. X             displays help screen
  396. X
  397. X
  398. XINPUT LANGUAGE
  399. X           The input language has four  types  of  input:  moves,
  400. X     move numbers, comments and keywords. All these are separated
  401. X     by blanks, TAB, CR, commas and semi-columns.
  402. X
  403. X
  404. X     move format:
  405. X              The moves are accepted in  algebraic  or  shortened
  406. X             algebraic  notation.   That means that the following
  407. X             are equivalent and accepted  Nf1-g3  N-f1xg3,  Nxg3,
  408. X             Ng3,  Nfg3.  The  ugly  english notation P-K4 is not
  409. X             understood, neither by the program nor me.  The pro-
  410. X             gram allows and parse variations.
  411. X
  412. X             Nota: provided you  remove  the  three  first  line,
  413. X             xchess save format is accepted.
  414. X
  415. X
  416. X
  417. XSun Release 4.1   Last change: 10 December 1990                 2
  418. X
  419. X
  420. X
  421. X
  422. X
  423. X
  424. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  425. X
  426. X
  427. X
  428. X              Also you can have move comments.  So  Kg4!!,  Ra5++
  429. X             are  correct, as Kg4 !!, Ra5 ++.  Castling is recog-
  430. X             nized with the following 0-0 O-O o-o 0-0-0 O-O-O  o-
  431. X             o-o.   "En  passant" and promotion are now correctly
  432. X             handled. For "en passant", you  just  indicate  them
  433. X             move  and  it is correctly parsed ex: "d5-d7 e5xd6".
  434. X             Promotion is indicated with the "=" sign followed by
  435. X             the  new  piece name. So you just write "a7-a8=Q" or
  436. X             "d8=K".
  437. X
  438. X             For   example,   see   the   files    algebraic.txt,
  439. X             shortened.txt and boudy.txt
  440. X
  441. X
  442. X     move numbers:
  443. X              move numbers are in the form 23. or  36.  The  full
  444. X             point  is optional. Move numbers are checked against
  445. X             internal move counter.
  446. X
  447. X
  448. X     comments:
  449. X               chess codified comments can be put in  the  input.
  450. X             There  are two ways or doing so. The first one is to
  451. X             use the usual chess notation !?, !, ,+, ++,  #,  ep,
  452. X             etc  ...  However,  international magazine use other
  453. X             no-ascii symbols : triangles, squares, infinity  and
  454. X             so  on. You can have these symbols  on LaTeX output.
  455. X             This is the second  way.  I  defined  three  letters
  456. X             abbreviations  for  such  symbols  (look at the file
  457. X             chesssymb.txt for an extensive  description).  These
  458. X             abbreviations  are  following a $ sign. For instance
  459. X             $wsb means "white slightly better".  This is,  IMHO,
  460. X             a very interesting feature of the program.
  461. X
  462. X
  463. X     text:    plain text, such as  explanations  etc...  must  be
  464. X             enclosed  in  brackets  or  parenthesis [Here Karpov
  465. X             made a very bright move ...] (this is  also  a  com-
  466. X             ment).   Comments   are  not  parsed,  but  directly
  467. X             inserted in the output, for  the  ascii  ,nroff  and
  468. X             latex drivers. The closing characters (ie "]" or ")"
  469. X             depending of the opening characters may be placed in
  470. X             the  text,  provided it is escaped by a "\" ( so you
  471. X             input "\]" or "\)" ).
  472. X
  473. X
  474. X     variations:
  475. X              You can have variations in  the  source.  Variation
  476. X             are  in  enclosing  {  }  . You can have up to three
  477. X             level of variation. It would  be  enough  for  human
  478. X             players.  A  variation always follows the move. Here
  479. X             is an exemple of variation : 25. Rb2 {  Ce4  de4  26
  480. X
  481. X
  482. X
  483. XSun Release 4.1   Last change: 10 December 1990                 3
  484. X
  485. X
  486. X
  487. X
  488. X
  489. X
  490. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  491. X
  492. X
  493. X
  494. X             Fc3 Fa3! 27. Ff6 Tb3 } Fa3!
  495. X
  496. X
  497. X     keywords:
  498. X              You can insert keywords in the input text  to  pre-
  499. X             cisely  define  what you want: displaying the board,
  500. X             configuring it... Keywords are detailled in the next
  501. X             section.
  502. X
  503. X
  504. XKEYWORDS
  505. X     all keywords are prefixed with @
  506. X
  507. X     @startplay
  508. X              begins the play. Obligatory after a @configxxx key-
  509. X             word.
  510. X
  511. X     @clearboard
  512. X             clears the board. Used prior to any @configxxx.
  513. X
  514. X     @showboard
  515. X             displays the board. Can be used anywhere
  516. X
  517. X     @whitesmove
  518. X             tells the program that is the white's turn of  play.
  519. X             Useful after a @configxxx and @startplay
  520. X
  521. X     @blacksmove
  522. X             tells the program that it is black's turn
  523. X
  524. X     @configwhite
  525. X             initializes configuration of white side. Pieces  are
  526. X             then  expected, in form of (optional for Pawn) name,
  527. X             the position. Example @configwhite Ke3 Rg8 e4.
  528. X
  529. X     @configblack
  530. X             initializes configuration of black side. Pieces  are
  531. X             then  expected, in form of (optional for Pawn) name,
  532. X             the position. Example: @configblack Ka8 Nf6 e6.
  533. X
  534. X             Note that black pieces are given in uppercase!
  535. X
  536. X
  537. X     @default
  538. X             resets the board to the default start configuration.
  539. X
  540. X             @special all following text up to the  next  cariage
  541. X             return is not processed, but instead directly print.
  542. X             This allows to insert comments in  ascii  files,  or
  543. X             tex commands when tex output is selected.
  544. X
  545. X     @null   null keyword. Does nothing. Used for convenience  in
  546. X
  547. X
  548. X
  549. XSun Release 4.1   Last change: 10 December 1990                 4
  550. X
  551. X
  552. X
  553. X
  554. X
  555. X
  556. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  557. X
  558. X
  559. X
  560. X             programming.
  561. X
  562. X
  563. X             See the file keywords.txt for an example of keywords
  564. X             use.
  565. X
  566. X
  567. XNATIONAL LANGUAGES
  568. X     Here are the symbols used in the  differents  languages.  ()
  569. X     mean optional in the input.
  570. X
  571. X
  572. X     english-name   King Queen     Rook Bishop    Knight    Pawn
  573. X     english        K    Q    R    B    N    (P)
  574. X     french         R    D    T    F    C    (P)
  575. X     italian        R    D    T    A    C    (P)
  576. X     spanish        R    D    T    A    C    (P)
  577. X     german         K    D    T    L    S    (B)
  578. X     dutch          K    D    T    L    P    (O)
  579. X     czech          K    D    V    S    J    (P)
  580. X     hungarian K    V    B    F    H    (G)
  581. X     polish         K    H    W    G    S    (P)
  582. X     romanian  R    D    T    N    C    (P)
  583. X     FIDE      K    D    T    S    N    (P)
  584. X
  585. X
  586. XDRIVERS
  587. X     ascii    this is the default driver,  it  outputs  move  and
  588. X             boards.
  589. X
  590. X
  591. X     postscript
  592. X               It generates a  file  using  the  font  file  Cheq
  593. X             licensed  for  free  by  Adobe.  It  is only able to
  594. X             display one board per run. Move are  not  displayed.
  595. X             You  need  the  font  "Cheq",  freely distributed by
  596. X             Adobe.  Send a  mail  to  "ps-file-server@adobe.com"
  597. X             with the body "send Programs chessfont.ps".
  598. X
  599. X
  600. X     tex       This is a latex  driver.  It  uses  the  TeX/LaTeX
  601. X             chess    macros    designed    by   Piet   Tutalaers
  602. X             "rcpt@urc.tue.nl".  The  complete  distribution   is
  603. X             available  on sol.cs.ruu.nl (131.211.80.5) with path
  604. X             TEX/chess.tar.Z. Refer to your local latex  guru  to
  605. X             install it.
  606. X
  607. X
  608. X     roff      This is a driver for nroff output.  It  is  crude,
  609. X             but it works. Moves and boards are displayed.
  610. X
  611. X
  612. X
  613. X
  614. X
  615. XSun Release 4.1   Last change: 10 December 1990                 5
  616. X
  617. X
  618. X
  619. X
  620. X
  621. X
  622. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  623. X
  624. X
  625. X
  626. X     xchess    This  driver  generates  compatible  xchess/xboard
  627. X             save  files, thus allowing you to replay a game with
  628. X             xchess.
  629. X
  630. X
  631. X     gnu       This driver generates "bare" output, with only the
  632. X             algebraic  move.   It  is suitable for any low-level
  633. X             analyser, such as gnuan.
  634. X
  635. X
  636. XEXAMPLES
  637. X          Try the following commands:
  638. X
  639. X     notation algebraic.txt
  640. X             this will read the  Karpov-Kasparov  game  13  (Lyon
  641. X             1990)  in  algebraic form, display move in shortened
  642. X             algebraic and display board at end of game.
  643. X
  644. X     notation algebraic.txt -s
  645. X             this will do the same thing, as -a stands for  alge-
  646. X             braic output.
  647. X
  648. X     notation algebraic.txt -a
  649. X             the game will now be output in full-length algebraic
  650. X
  651. X     notation shortened.txt
  652. X             there is no problem to read shortened algebraic.
  653. X
  654. X     notation shortened -s -o result
  655. X             the moves and board will be directed to file result
  656. X
  657. X     notation shortened.txt -s -t french
  658. X             output will use french notation
  659. X
  660. X     notation a_dutch_file -f dutch -t spanish
  661. X             game will be translated form dutch to spanish
  662. X
  663. X     notation shortened -c 2
  664. X             board after move 2 will  be  displayed,  along  with
  665. X             moves and end-of-game board
  666. X
  667. X     notation shortened.txt -e 2
  668. X             board after move 2 will  be  displayed,  along  with
  669. X             moves. The program will then stops
  670. X
  671. X     notation shortened.txt -c 2,5,20
  672. X             board after moves 2, 5 and  20  will  be  displayed,
  673. X             along with moves and end-of-game board
  674. X
  675. X     notation shortened.txt -c 2,5,20 -b
  676. X             board after moves 2, 5 and  20  will  be  displayed,
  677. X             with end-of-game board, but no moves.
  678. X
  679. X
  680. X
  681. XSun Release 4.1   Last change: 10 December 1990                 6
  682. X
  683. X
  684. X
  685. X
  686. X
  687. X
  688. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  689. X
  690. X
  691. X
  692. X     notation shortened.txt -c 2,5,20 -d tex
  693. X             the output will be formatted to use with latex.  You
  694. X             can directly latex the output file.
  695. X
  696. X     notation shortened.txt -c 2,5,20 -d gnu
  697. X             you can now replay  the  game  by  using  xchess  -r
  698. X             out.gnu.
  699. X
  700. X     notation shortened.txt -e 5 -d postscript
  701. X             Now issue cat lib/Cheq out.ps | lpr to display on  a
  702. X             Laser  Printer  the  board  at  move 5. You can also
  703. X             issue sh print-ps out-ps.  The postcript driver does
  704. X             not support the -c option.
  705. X
  706. X     notation boudy.txt -d tex -o boudy.tex
  707. X             This is the all-star, all-singing  demonstration  of
  708. X             the  notation  program.  Runs latex on boudy.tex and
  709. X             print result.
  710. X
  711. X
  712. XFILES
  713. X     algebraic.txt shortened.txt keywords.txt boudy.txt
  714. X             these are examples of input files
  715. X
  716. X
  717. X     chesssymb.tex
  718. X              this is the LaTeX file containing  the  definitions
  719. X             of  the codified comment. You can include it in your
  720. X             own LaTeX files: you will be able to use  the  chess
  721. X             comments. The file is stand-alone. To iclude comment
  722. X             in LaTeX, just type  \COM<three  letter  name>.  For
  723. X             instance  \COMwsb  inserts  the  symbol  for "whites
  724. X             stands lightly better".
  725. X
  726. X
  727. X     chesssymb.txt
  728. X             explanation of codified comments
  729. X
  730. X
  731. X     convsymb.txt
  732. X             used to prduce chesssymb.txt
  733. X
  734. X
  735. X     ($LIBDIR/)HELPFILE
  736. X             this is the on-line helpfile
  737. X
  738. X
  739. X     ($LIBDIR/) Cheq Header.ps Footer.ps
  740. X             these files are needed by the postscript driver
  741. X
  742. X
  743. X     ($LIBDIR/)Header.tex
  744. X
  745. X
  746. X
  747. XSun Release 4.1   Last change: 10 December 1990                 7
  748. X
  749. X
  750. X
  751. X
  752. X
  753. X
  754. Xnotation(n)       MISC. REFERENCE MANUAL PAGES        notation(n)
  755. X
  756. X
  757. X
  758. X             these file is needed by the (la)tex driver
  759. X
  760. X
  761. XSEE ALSO
  762. X     xchess(1), chess(6), gnuchess(1), latex(1), nroff(1), lpr(1)
  763. X
  764. X
  765. XDIAGNOSTICS
  766. X     Errors messages are hoped to be self-explanative.
  767. X
  768. X
  769. XCOMMENTS
  770. X     The program is quite large, due  to  the  extensive  use  of
  771. X     tables  and variables to control its features. The advantage
  772. X     is you only need the modify these tables  to  customize  it:
  773. X     for instance adding a new language or tuning the output for-
  774. X     mat to your own needs.
  775. X
  776. X
  777. XBUGS
  778. X     Too many. Report them to Henry.Thomas@irisa.fr.
  779. X
  780. X     The postscript driver *might* fail if you try to display the
  781. X     board  two times. Anyway, it is not designed to do this. Use
  782. X     -e option to specify the move at which you want  to  display
  783. X     board.
  784. X
  785. X     Do not enter  two  levels  of  variation  without  any  move
  786. X     between  them.  It  will cause the crash of the program. For
  787. X     instance, { { is wrong, but  { Qd1 { is correct.
  788. X
  789. X
  790. X
  791. XAUTHOR
  792. X     Henry    Thomas    IRISA-Rennes,    FRANCE.    E-mail     to
  793. X     Henry.Thomas@irisa.fr or hthomas@irisa.fr.
  794. X
  795. XTHANKS
  796. X     Thanks to Jacques Schuurman for the piece  names  in  Dutch,
  797. X     Philippe  Louarn for explaining me some TeX tricks, Lael for
  798. X     czech, hungarian, polish, romanian and FIDE piece names,  to
  799. X     Steven  Young.  Most of all, thank to Jean-Luc Scharbarg for
  800. X     introducing me to chess.
  801. X
  802. X
  803. X
  804. X
  805. X
  806. X
  807. X
  808. X
  809. X
  810. X
  811. X
  812. X
  813. XSun Release 4.1   Last change: 10 December 1990                 8
  814. X
  815. X
  816. X
  817. END_OF_FILE
  818. if test 15121 -ne `wc -c <'notation.doc'`; then
  819.     echo shar: \"'notation.doc'\" unpacked with wrong size!
  820. fi
  821. # end of 'notation.doc'
  822. fi
  823. if test -f 'notation.n' -a "${1}" != "-c" ; then 
  824.   echo shar: Will not clobber existing file \"'notation.n'\"
  825. else
  826. echo shar: Extracting \"'notation.n'\" \(12206 characters\)
  827. sed "s/^X//" >'notation.n' <<'END_OF_FILE'
  828. X.\" @(#)notation.n    3.1 (C) Henry Thomas\tVersion 3.1\tDated 6/16/91;
  829. X.TH notation n "10 December 1990"
  830. X
  831. X.SH NAME
  832. X
  833. Xnotation \- transform chess notation
  834. X
  835. X.SH SYNOPSYS
  836. X
  837. Xnotation [input file] [-o output file] [-options...]
  838. X
  839. X.SH DESCRIPTION 
  840. X
  841. XThis program reads chess games, either full algebraic or shortened (ie
  842. XNf1-g3 or Ng3) and is able to ouptut the board after any move, in
  843. Xeither ascii , postscript, nroff, latex, xboard or gnuan save
  844. Xformat. This program is also multi-lingual: it handles english,
  845. Xfrench, spanish, german, italian, dutch, romanian etc... symbols. So
  846. Xnearly all europeans languages are understood (except greek and
  847. Xrussian, but I can't handle greek or cyrillic on ascii computers, eh).
  848. X
  849. X.SH OPTIONS
  850. XCommand line options:
  851. X
  852. X.TP 8
  853. X.B -a        
  854. Xalgebraic move notation output
  855. X
  856. X.TP 8
  857. X.B -s        
  858. Xshortened move notation output
  859. X
  860. X.TP 8
  861. X.B -f <language>    
  862. Xspecifies the chess symbol input language. The language can be any of
  863. X\fBfrench\fR, \fBenglish\fR, \fBitalian\fR, \fBspanish\fR,
  864. X\fBgerman\fR, \fBdutch\fR, \fBczech\fR, \fBhungarian\fR, \fBpolish\fR,
  865. X\fBromanian\fR, \fBFIDE\fR.
  866. X
  867. X.TP 8
  868. X.B -t <language>    
  869. Xspecifies the chess symbol output language. Same options as input language.
  870. X
  871. X.TP 8
  872. X.B <inputfile>
  873. Xspecifies the input file. If none, keyboard is assumed.
  874. X
  875. X.TP 8
  876. X.B -o <outputfile>
  877. Xspecifies the output file. If none, screen is assumed.
  878. X
  879. X.TP 8
  880. X.B -c <number>[,<number]    
  881. Xspecifies the \fBnumber\fR of the moves at which  to display the board. If
  882. Xnone, board 
  883. Xis displayed at end of file. Several numbers may be specified, as a
  884. Xcomma-separated list.
  885. X
  886. X.TP 8
  887. X.B -e <number>     
  888. Xdisplay the board at the move \fBnumber\fR and then stops
  889. X
  890. X.TP 8
  891. X.B -b        
  892. Xdisplay only the board, not the moves
  893. X
  894. X.TP 8
  895. X.B -d <drivername>    
  896. Xspecifies the output driver. It can be any of the following:
  897. X\fBascii\fR, \fBpostscript\fR, \fBtex\fR, \fBroff\fR, \fBxchess\fR
  898. X(xchess or xboard save format), \fBgnu\fR (gnuan input format).
  899. X
  900. X.TP 8
  901. X.B -i        
  902. Xsuppress headers/footers printing. This is useful with tex or ps
  903. Xdrivers, if you want to include the output in a larger file.
  904. X
  905. X.TP 8
  906. X.B -v        
  907. Xdisplays version number and exits
  908. X
  909. X.TP 8
  910. X.B -h        
  911. Xdisplays help screen
  912. X
  913. X.SH "INPUT LANGUAGE"
  914. X    
  915. XThe input language has four types of input: moves, move numbers,
  916. Xcomments and keywords. All these are separated by blanks, TAB, CR, 
  917. Xcommas and semi-columns.
  918. X
  919. X.TP 8 
  920. X.B move format:
  921. X The moves are accepted in algebraic or shortened algebraic notation.
  922. XThat means that the following are equivalent and accepted \fB Nf1-g3
  923. XN-f1xg3, Nxg3, Ng3, Nfg3\fR. The ugly english notation \fBP-K4\fR is
  924. Xnot understood, neither by the program nor me.  The program allows and
  925. Xparse variations.
  926. X
  927. XNota: provided you remove the three first line, xchess save format is
  928. Xaccepted. 
  929. X
  930. X Also you can have move comments. So \fBKg4!!, Ra5++\fR are correct,
  931. Xas \fBKg4 !!, Ra5 ++\fR.  Castling is recognized with the following
  932. X\fB0-0 O-O o-o 0-0-0 O-O-O o-o-o\fR.  "En passant" and promotion are
  933. Xnow correctly handled. For "en passant", you just indicate them move
  934. Xand it is correctly parsed ex: "d5-d7 e5xd6". Promotion is indicated
  935. Xwith the "=" sign followed by the new piece name. So you just write
  936. X"a7-a8=Q" or "d8=K".
  937. X
  938. XFor example, see the files \fBalgebraic.txt\fR,
  939. X\fBshortened.txt\fR and \fBboudy.txt\fR
  940. X
  941. X.TP 8
  942. X.B move numbers:
  943. X move numbers are in the form \fB23.\fR or \fB36\fR. The full point is
  944. Xoptional. Move numbers are checked against internal move counter.
  945. X
  946. X.TP 8 
  947. X.B comments: 
  948. X  chess codified comments can be put in the input.  There are two ways
  949. Xor doing so. The first one is to use the usual chess notation \fB!?,
  950. X!, ,+, ++, #, ep, etc \fR... However, international magazine use other
  951. Xno-ascii symbols : triangles, squares, infinity and so on. You can
  952. Xhave these symbols \fB on LaTeX output\fR. This is the second way. I
  953. Xdefined three letters abbreviations for such symbols (look at the file
  954. X\fBchesssymb.txt\fR for an extensive description). These abbreviations
  955. Xare following a \fB$\fr sign. For instance \fB$wsb\fR means "white
  956. Xslightly better".  This is, IMHO, a very interesting feature of the
  957. Xprogram.
  958. X
  959. X.TP 8
  960. X.B text: 
  961. X plain text, such as explanations etc... must be enclosed in brackets
  962. Xor parenthesis \fB[Here Karpov made a very bright move ...]\fR
  963. X\fB(this is also a comment)\fR. Comments are not parsed, but directly
  964. Xinserted in the output, for the \fBascii\fR ,\fBnroff\fR and
  965. X\fBlatex\fR drivers. The closing characters (ie "]" or ")" depending
  966. Xof the opening characters may be placed in the text, provided it is
  967. Xescaped by a "\\" ( so you input "\\]" or "\\)" ).
  968. X
  969. X.TP 8
  970. X.B variations:
  971. X You can have variations in the source. Variation are in enclosing \fB
  972. X{ } \fR. You can have up to three level of variation. It would be
  973. Xenough for human players. A variation always follows the move. Here is
  974. Xan exemple of variation : \fB25. Rb2 { Ce4 de4 26 Fc3 Fa3! 27. Ff6 Tb3
  975. X} Fa3!\fR
  976. X
  977. X.TP 8
  978. X.B keywords:
  979. X You can insert keywords in the input text to precisely define what
  980. Xyou want: displaying the board, configuring it... Keywords are
  981. Xdetailled in the next section.
  982. X
  983. X.SH KEYWORDS
  984. Xall keywords are prefixed with \fB@\fR
  985. X.TP8
  986. X.B @startplay
  987. X begins the play. Obligatory after a \fB@configxxx\fR keyword.
  988. X.TP8
  989. X.B @clearboard
  990. Xclears the board. Used prior to any \fB@configxxx\fR.
  991. X.TP8
  992. X.B @showboard
  993. Xdisplays the board. Can be used anywhere
  994. X.TP8
  995. X.B @whitesmove
  996. Xtells the program that is the white's turn of play. Useful after a
  997. X\fB@configxxx\fR and \fB@startplay\fR
  998. X.TP8
  999. X.B @blacksmove
  1000. Xtells the program that it is black's turn
  1001. X.TP8
  1002. X.B @configwhite
  1003. Xinitializes configuration of white side. Pieces are then expected, in
  1004. Xform of (optional for Pawn) name, the position. Example
  1005. X\fB@configwhite Ke3 Rg8 e4\fR.
  1006. X.TP8
  1007. X.B @configblack
  1008. Xinitializes configuration of black side. Pieces are then expected, in
  1009. Xform of (optional for Pawn) name, the position. Example:
  1010. X\fB@configblack Ka8 Nf6 e6\fR. 
  1011. X
  1012. XNote that black pieces are given in uppercase!
  1013. X
  1014. X.TP8
  1015. X.B @default
  1016. Xresets the board to the default start configuration.
  1017. X.TP8
  1018. X
  1019. X.TP8
  1020. X.B @title{ <title>}
  1021. Xthis keyword accept one argument enclosed in {}. Example:
  1022. X\fB@title{Karpov-Kasporov}\fR. Note that you can put \fB}\fR in the
  1023. Xtext itself, if it is escaped (\fB\\}\fR).
  1024. X
  1025. X.TP8
  1026. X.B @subtitle{ <subtitle>}
  1027. Xprints a subtitle
  1028. X
  1029. X.TP8
  1030. X.B @score{ <text> }
  1031. Xprints the score.
  1032. X
  1033. X.TP8
  1034. X.B @language{french|english|...|FIDE}
  1035. Xthis keyword specifies in which language the pieces names are
  1036. Xexpressed. This option overides command-line option.
  1037. X
  1038. X.B @special
  1039. Xall following text up to the next cariage return is not processed, but
  1040. Xinstead directly print. This allows to insert comments in ascii files,
  1041. Xor tex commands when tex output is selected. 
  1042. X.TP8
  1043. X.B @null
  1044. Xnull keyword. Does nothing. Used for convenience in programming.
  1045. X
  1046. X
  1047. XSee the file \fBkeywords.txt\fR for an example of keywords use.
  1048. X
  1049. X.SH "NATIONAL LANGUAGES"
  1050. X
  1051. XHere are the symbols used in the differents languages. () mean
  1052. Xoptional in the input.
  1053. X
  1054. X
  1055. Xenglish-name    King    Queen    Rook    Bishop    Knight    Pawn
  1056. Xenglish        K    Q    R    B    N    (P)
  1057. Xfrench        R    D    T    F    C    (P)
  1058. Xitalian        R    D    T    A    C    (P)
  1059. Xspanish        R    D    T    A    C    (P)
  1060. Xgerman        K    D    T    L    S    (B)
  1061. Xdutch        K    D    T    L    P    (O)
  1062. Xczech        K    D    V    S    J    (P)
  1063. Xhungarian    K    V    B    F    H    (G)
  1064. Xpolish        K    H    W    G    S    (P)
  1065. Xromanian    R    D    T    N    C    (P)
  1066. XFIDE        K    D    T    S    N    (P)
  1067. X
  1068. X.SH DRIVERS
  1069. X
  1070. X.TP 8
  1071. X.B ascii
  1072. X this is the default driver, it outputs move and boards.
  1073. X
  1074. X.TP 8
  1075. X.B postscript
  1076. X  It generates a file using the font file \fBCheq\fR licensed for free
  1077. Xby Adobe. It is only able to display one board per run. Move are not
  1078. Xdisplayed. You need the font "Cheq", freely distributed by Adobe.
  1079. XSend a mail to "ps-file-server@adobe.com" with the body "send Programs
  1080. Xchessfont.ps".
  1081. X
  1082. X.TP 8
  1083. X.B tex 
  1084. X  This is a \fBlatex\fR driver. It uses the TeX/LaTeX chess macros
  1085. Xdesigned by Piet Tutalaers "rcpt@urc.tue.nl". The complete
  1086. Xdistribution is available on sol.cs.ruu.nl (131.211.80.5) with path
  1087. XTEX/chess.tar.Z. Refer to your local latex guru to install it.
  1088. X
  1089. X.TP 8
  1090. X.B roff
  1091. X  This is a driver for nroff output. It is crude, but it works. Moves and
  1092. Xboards are displayed.
  1093. X
  1094. X.TP 8
  1095. X.B xchess
  1096. X  This driver generates compatible xchess/xboard save files, thus allowing you
  1097. Xto replay a game with xchess.
  1098. X
  1099. X.TP 8
  1100. X.B gnu
  1101. X  This driver generates "bare" output, with only the algebraic move.
  1102. XIt is suitable for any low-level analyser, such as gnuan.
  1103. X
  1104. X.SH EXAMPLES
  1105. X    Try the following commands:
  1106. X.TP 8
  1107. X.B notation algebraic.txt
  1108. Xthis will read the Karpov-Kasparov game 13 (Lyon 1990) in algebraic form,
  1109. Xdisplay move in shortened algebraic and display board at end of game.
  1110. X.TP 8
  1111. X.B notation algebraic.txt -s
  1112. Xthis will do the same thing, as \fB-a\fR stands for algebraic
  1113. Xoutput. 
  1114. X.TP 8
  1115. X.B notation algebraic.txt -a
  1116. Xthe game will now be output in full-length algebraic
  1117. X.TP 8
  1118. X.B notation shortened.txt
  1119. Xthere is no problem to read shortened algebraic.
  1120. X.TP 8
  1121. X.B notation shortened -s -o result
  1122. Xthe moves and board will be directed to file \fBresult\fR
  1123. X.TP 8
  1124. X.B notation shortened.txt -s -t french 
  1125. Xoutput will use french notation
  1126. X.TP 8
  1127. X.B notation a_dutch_file -f dutch -t spanish
  1128. Xgame will be translated form dutch to spanish
  1129. X.TP 8
  1130. X.B notation shortened -c 2
  1131. Xboard after move 2 will be displayed, along with moves and end-of-game
  1132. Xboard
  1133. X.TP 8
  1134. X.B notation shortened.txt -e 2
  1135. Xboard after move 2 will be displayed, along with moves. The program
  1136. Xwill then stops
  1137. X.TP 8
  1138. X.B notation shortened.txt -c 2,5,20
  1139. Xboard after moves 2, 5 and 20 will be displayed, along with moves and
  1140. Xend-of-game board
  1141. X.TP 8
  1142. X.B notation shortened.txt -c 2,5,20 -b
  1143. Xboard after moves 2, 5 and 20 will be displayed, with end-of-game
  1144. Xboard, but no moves.
  1145. X.TP 8
  1146. X.B notation shortened.txt -c 2,5,20 -d tex -o out.tex
  1147. Xthe output will be formatted to use with latex. You can directly latex
  1148. Xthe output file.
  1149. X.TP 8
  1150. X.B notation shortened.txt -c 2,5,20 -d gnu -o out.gnu
  1151. Xyou can now replay the game by using \fBxchess -r out.gnu\fB.
  1152. X.TP 8
  1153. X.B notation shortened.txt -e 5 -d postscript -o out.ps
  1154. XNow issue \fBcat lib/Cheq out.ps | lpr\fR to display on a Laser
  1155. XPrinter the board at move 5. You can also issue \fBsh print-ps
  1156. Xout-ps\fR.
  1157. XThe postcript driver does not support the \fB-c\fR option.
  1158. X.TP 8
  1159. X.B notation boudy.txt -d tex -o boudy.tex
  1160. XThis is the all-star, all-singing demonstration of the notation
  1161. Xprogram. Runs latex on boudy.tex and print result.
  1162. X
  1163. X.SH FILES
  1164. X
  1165. X.TP 8
  1166. X.B algebraic.txt shortened.txt keywords.txt boudy.txt
  1167. Xthese are examples of input files
  1168. X
  1169. X.TP8
  1170. X.B chesssymb.tex
  1171. X this is the LaTeX file containing the definitions of the codified
  1172. Xcomment. You can include it in your own LaTeX files: you will be able
  1173. Xto use the chess comments. The file is stand-alone. To iclude
  1174. Xcomment in LaTeX, just type \fB\\COM<three letter name>\fR. For
  1175. Xinstance \fB\\COMwsb\fR inserts the symbol for "whites stands lightly
  1176. Xbetter".
  1177. X
  1178. X.TP8
  1179. X.B chesssymb.txt
  1180. Xexplanation of codified comments
  1181. X
  1182. X.TP8
  1183. X.B convsymb.txt
  1184. Xused to prduce chesssymb.txt
  1185. X
  1186. X.TP 8
  1187. X.B ($LIBDIR/)HELPFILE
  1188. Xthis is the on-line helpfile
  1189. X
  1190. X.TP 8
  1191. X.B ($LIBDIR/) Cheq Header.ps Footer.ps
  1192. Xthese files are needed by the postscript driver
  1193. X
  1194. X.TP 8
  1195. X.B ($LIBDIR/)Header.tex
  1196. Xthese file is needed by the (la)tex driver
  1197. X
  1198. X.SH "SEE ALSO"
  1199. Xxchess(1), chess(6), gnuchess(1), latex(1), nroff(1), lpr(1)
  1200. X
  1201. X.SH DIAGNOSTICS
  1202. XErrors messages are hoped to be self-explanative.
  1203. X
  1204. X.SH COMMENTS 
  1205. XThe program is quite large, due to the extensive use of tables and
  1206. Xvariables to control its features. The advantage is you only need the
  1207. Xmodify these tables to customize it: for instance adding a new
  1208. Xlanguage or tuning the output format to your own needs. 
  1209. X
  1210. X.SH BUGS
  1211. XToo many. Report them to \fBHenry.Thomas@irisa.fr\fR.
  1212. X
  1213. XThe postscript driver *might* fail if you try to display the board
  1214. Xtwo times. Anyway, it is not designed to do this. Use \fB-e\fR option
  1215. Xto specify the move at which you want to display board.
  1216. X
  1217. XDo not enter two levels of variation without any move between them. It
  1218. Xwill cause the crash of the program. For instance, \fB{ {\fR is wrong,
  1219. Xbut \fB { Qd1 {\fR is correct.
  1220. X
  1221. X
  1222. X.SH AUTHOR
  1223. XHenry Thomas IRISA-Rennes, FRANCE. E-mail to
  1224. X\fBHenry.Thomas@irisa.fr\fR or \fBhthomas@irisa.fr\fR.
  1225. X.SH "THANKS"
  1226. X
  1227. XThanks to Jacques Schuurman for the piece names in Dutch, Philippe
  1228. XLouarn for explaining me some TeX tricks, Lael for czech, hungarian,
  1229. Xpolish, romanian and FIDE piece names, to Steven Young. Most of all,
  1230. Xthank to Jean-Luc Scharbarg for introducing me to chess.
  1231. END_OF_FILE
  1232. if test 12206 -ne `wc -c <'notation.n'`; then
  1233.     echo shar: \"'notation.n'\" unpacked with wrong size!
  1234. fi
  1235. # end of 'notation.n'
  1236. fi
  1237. if test -f 'shortened.txt' -a "${1}" != "-c" ; then 
  1238.   echo shar: Will not clobber existing file \"'shortened.txt'\"
  1239. else
  1240. echo shar: Extracting \"'shortened.txt'\" \(7032 characters\)
  1241. sed "s/^X//" >'shortened.txt' <<'END_OF_FILE'
  1242. X[This is the commentary from the USA Today Sports Center, written by
  1243. XIM Bjarke Kristiansen (and polished a bit by me).][ They are probably
  1244. Xthe quickest way to get the moves (perhaps AP access is quicker, I
  1245. Xdon't know how fast the AP gets updated on Compuserve); their number
  1246. Xfor subscribing (no online newuser service) is 800-826-9688.]
  1247. X
  1248. X[I was told it was okay to post this from there, as long as I gave
  1249. Xappropriate reference.]
  1250. X
  1251. X[WORLD CHESS CHAMPIONSHIP
  1252. XGAME 13 - Drawn after Adjournment
  1253. XNovember 24, 1990]
  1254. X
  1255. X[KARPOV  KASPAROV]
  1256. X
  1257. X@language{english}
  1258. X
  1259. X1. d4    Nf6
  1260. X2. c4    g6
  1261. X3. Nc3   d5
  1262. X
  1263. X[Welcome to game 13th ..and the GI that's Grunfeld-Indian. Fight
  1264. Xfrom the start.]
  1265. X
  1266. X4. cxd5  Nd5
  1267. X5. e4    Nxc3
  1268. X6. bxc3  Bg7
  1269. X7. Be3   c5
  1270. X8. Qd2   O-O
  1271. X
  1272. X[So far on two minutes each. GK.. Garry Kasparov looks tensed, says
  1273. XMike Valvo. Now Karpov took full 9 minutes to play ...]
  1274. X
  1275. X9. Rc1   Qa5
  1276. X
  1277. X[Kasparov thought six minutes here. Time now: White 0:19 Black: 0:08.
  1278. XNow 9 minutes has gone and AK is still thinks. Kasparov has left
  1279. Xthe stage. Who is fooling who? 9..Qa5 might be a new move. Its
  1280. Xnot in the pressroom database. Karpov is still thinking, so time for a
  1281. Xlittle presentation. At your service in Lyon IM Bjarke Kristensen (Now Valvo:
  1282. XAK is nodding his head up and down alone on stage.) As kommentators:
  1283. XBoris Spassky and a number of strong french IM's. IM Mike Valvo from New Jersey
  1284. Xis here for a week.]
  1285. X
  1286. X10. Nf3   e6
  1287. X
  1288. X[And the 'soon-to-be' GM Will Watson from England is here too.
  1289. X'I don't understand the GI' he just said. Kasparov stays on stage.
  1290. XTime: White: 0:37 Black: 0:10. Says Will Watson (now WW): 'I
  1291. Xpredicted the opening this morning. And so did many others.'
  1292. XValvo: 'I think this shows that the Kings Indian hasn't worked
  1293. Xout for Kasparov'. IM Levy suggests b7-b6 for Black. IM Jonathan Tisdall says:
  1294. XI've seen this before. But nobody can find a game with it'.]
  1295. X
  1296. X11. d5    exd5
  1297. X12. exd5  Re8
  1298. X13. Be2
  1299. X
  1300. X[Time: White: 0:53 Black: 0:24. Valvo observed GK tapping his
  1301. Xfingers impatiently on the table after move Re8. It just might all
  1302. Xbe preparations! Both are sitting deeply concentrated at the table.]
  1303. X
  1304. X13. ...   Bf5
  1305. X14. O-O
  1306. X
  1307. X[The atmosphere in the pressroom is a bit 'fuzzy'. The game hasn't
  1308. Xfound it's own personality yet, and the fact that the US plays
  1309. Xthe Soviets at the Chess Olympiad in Novi Sad at this very moment is
  1310. Xalso widely discussed.]
  1311. X
  1312. X14. ...   Nd7
  1313. X
  1314. X[Interesting is now: 15.Nh4 Be4 16.f3 Bxd5! 17.Qxd5 Rxe3 18.Qxd7
  1315. X18...Rxe2 with a big Black plus. say Watson. Rumours say that
  1316. XGK might be better here, but nobody really dares to risk his
  1317. Xneck. The game is still in its childhood. But AK surely is in for
  1318. Xa deep think. Now he's on 1:16 and still thinking. Garry has left the
  1319. Xstage. Valvo say: The Mephisto computer thinks Black is better!
  1320. XIt's no 'Deep Thought', but the Mephisto Chess Computer IS
  1321. Xalready world champion in its class. No one else dared to test
  1322. Xtheir program against it!]
  1323. X
  1324. X15. h3
  1325. X
  1326. X[Time: White: 1:18 Black: 0:31. Now Karpov has left stage. And GK
  1327. Xhangs over the board as if to power up his chessmuscles. Kasparov seems
  1328. Xrelaxed and satisfied. White's problem is his weakened pawns on the Q-side.
  1329. XAnd as for his pride-pawn on d5? In an endgame it could be pure
  1330. Xgold, but until then it gives a good square to a Black piece
  1331. Xon d6. Kasparov now 'hangs' his head between his hands. A very typical
  1332. Xposture for the WC.]
  1333. X
  1334. X15. ...   Nb6
  1335. X
  1336. X[GM Lein thinks White is in deep trouble. GK might play Nb6-a4.
  1337. XAnother of GK's ideas might be Qa5-a4.]
  1338. X
  1339. X16. g4
  1340. X
  1341. X[Now ...that's a man! Karpov's idea obviously is 16... Be4 17.c4 Qxd2
  1342. X18.Nxd2 with 19.Nxe4 and 20.Bd3 to come. After a very slow start suddenly
  1343. Xthe game is very exciting. Now the Russians GMs in the pressroom find:
  1344. X16...Be4 17.c4.. Qa3! with a Black edge. But...]
  1345. X
  1346. X16. ...   Bd7
  1347. X
  1348. X[Time: AK: 1:31  GK: 0:49. GM-elects Watson and Gallagher say Karpov is still
  1349. Xunder pressure, but improving. Mephisto 'thinks' it's slightly better for
  1350. XBlack. And the Russians say that Kasparov should have played h7-h5, not
  1351. XNd7-b6.]
  1352. X
  1353. X17. c4    Qxd2
  1354. X18. Nxd2  Na4
  1355. X19. Bf3   Nc3
  1356. X20. Rxc3  Bxc3
  1357. X21. Ne4
  1358. X
  1359. X[The heat is on, in the Palais des Congress. Watson thinks GK is still
  1360. Xdoing well. Might be a British understatement. Kasparov is in for at deep
  1361. Xthink. Time: White: 1:42 Black: 1:12 IM Tisdall: He'll take on e4 now,
  1362. Xand it is a draw.]
  1363. X
  1364. X21. ...   Rxe4
  1365. X22. Bxe4  Re8
  1366. X23. Bd3   b6
  1367. X24. Kg2
  1368. X
  1369. X[Tisdall says: The first one who can bring himself to offer a draw
  1370. Xwill get it. He might be right. A drastic change of the game has
  1371. Xtaken place. And where did Kasparov drop his advantage? Maybe ...Nc3
  1372. Xshould have been prepared. Time: White: 1:46 Black: 1:17.
  1373. XIf Karpov plays Be3-c1 to press f2-f4 (hoping for an endgame
  1374. Xadvantage with f4-f5) GK might play Re8-e1 to enter a tame
  1375. Xdobble-bishop ending. Draw.]
  1376. X
  1377. X24. ...   f5
  1378. X25. gxf5  Bxf5
  1379. X26. Bxf5  gxf5
  1380. X
  1381. X[Karpov sits thinking alone at the board. Black's Bc3 is potentially weaker
  1382. Xthan Be3, but White's c4 pawn is GK's major target. I think that Black's
  1383. Xstill better. White's d-pawn looks strong (and it is) but right now it's
  1384. Xquite impotent. If advanced it'll just be lost, since Kg8 is to close.]
  1385. X
  1386. X27. Rd1   Kf7
  1387. X
  1388. X[Time: White: 2:07 Black: 1:28. Now Kasparov's lead on the clock
  1389. Xbegins to count. Karpov must be considering lines like: 28.d6 Ke6 29.Bf4
  1390. XBe5 30.Bxe5 Kxe5 31.Rd5+ Ke6 32.d7 Rd8 and Black is much better.]
  1391. X
  1392. X28. Rd3   Bf6
  1393. X29. Ra3   a5
  1394. X30. Rb3
  1395. X
  1396. X[Time: White: 2:12 Black: 1:31. It might look simple, but in fact
  1397. Xthe game is balanced on an edge. Which is most important: Black's
  1398. Xweakness on b6 or White's on c4?]
  1399. X
  1400. X30. ...   Bd8
  1401. X
  1402. X[People in the pressroom seems to be losing interest a bit. I think
  1403. Xthat a long endgame battle may be ahead. The fight for the
  1404. Xinitiative is still very much on. Now Watson arrived with news,..
  1405. Xhe said: The Russians think GK is slightly better, the Americans
  1406. Xthinks AK is slightly better and it might be a draw' says Watson.]
  1407. X
  1408. X31. Rc3
  1409. X
  1410. X[Both are leaning across the board. If Karpov can get his king to d3,
  1411. Xhe might play on forever. Kasparov seems 'speculative' now.
  1412. XOne point in Karpov's favour is: 31...Bc7 32.Kf3 Re4 33.Ke2 f4
  1413. X34.Kd3 and Re4 has to move.]
  1414. X
  1415. X31. ...   Bc7
  1416. X
  1417. X[Karpov is hiding his head behind his hands, looking through his
  1418. Xfingers. Nine minutes left.]
  1419. X
  1420. X32. a4    Kf6
  1421. X33. Kf1   f4
  1422. X
  1423. X[33...f4! GK played this with determination. I don't understand
  1424. XKarpov's Kg2-f1.]
  1425. X
  1426. X34. Bc1   Kf5
  1427. X35. Rc2   Rg8
  1428. X36. Re2   Be5
  1429. X37. Bb2   Bd4
  1430. X38. Bxd4  cxd4
  1431. X39. Re7   d3
  1432. X40. Ke1   Rc8
  1433. X41. Kd2   Rxc4
  1434. X
  1435. X[Kasparov has moved from c8 to c4. Move 41 made. The last seven
  1436. Xmoves took only 11 minutes Now all analysis goes: 42.Kxd3
  1437. XRxa4 43.d6 Ra3+ 44.Kc4 Ra1 45. Kd5 Rd1+ 46.Kc6 a4 and White
  1438. Xmight be the one who in trouble. Both still sits at the board. GK
  1439. Xis looking everywhere else, waiting for Karpov to decide on
  1440. Xif he want to sealed his move  now. Some say that Kasparov might
  1441. Xhave proposed a draw earlier on. Not verified. Time: 2:42 - 2:08.
  1442. XKarpov sealed his 42nd move. The game will be continued (maybe)
  1443. Xtomorrow at 11:00 AM ET.
  1444. X
  1445. X
  1446. XGame 13 Adjournment Update
  1447. XA draw was agreed upon before adjournement has resumed.]
  1448. X
  1449. X
  1450. END_OF_FILE
  1451. if test 7032 -ne `wc -c <'shortened.txt'`; then
  1452.     echo shar: \"'shortened.txt'\" unpacked with wrong size!
  1453. fi
  1454. # end of 'shortened.txt'
  1455. fi
  1456. echo shar: End of archive 2 \(of 4\).
  1457. cp /dev/null ark2isdone
  1458. MISSING=""
  1459. for I in 1 2 3 4 ; do
  1460.     if test ! -f ark${I}isdone ; then
  1461.     MISSING="${MISSING} ${I}"
  1462.     fi
  1463. done
  1464. if test "${MISSING}" = "" ; then
  1465.     echo You have unpacked all 4 archives.
  1466.     rm -f ark[1-9]isdone
  1467. else
  1468.     echo You still need to unpack the following archives:
  1469.     echo "        " ${MISSING}
  1470. fi
  1471. ##  End of shell archive.
  1472. exit 0
  1473.  
  1474.  
  1475. --
  1476. Henry Thomas - IRISA          - E-mail: Henry.Thomas@irisa.fr 
  1477. Campus Universitaire de Beaulieu - Phone: (+33)99 36 20 00 +549  
  1478. 35042 RENNES CEDEX FRANCE      - Fax: (+33)99 38 38 32 Telex: UNIRISA 950473F
  1479. Telex Atlas X400: /X121=842950473/@atlas.fr, Fax:/X121=200099383832/@atlas.fr
  1480. --
  1481.  
  1482. exit 0 # Just in case...
  1483. -- 
  1484. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  1485. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  1486. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  1487. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  1488.